using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace TextSupport
{
	public class OutlineView
	{
		IEditSurface _surface;
		internal IEditSurface Surface
		{
			get { return _surface; }
		}

		internal float height;
		public float Height
		{
			get { return height; }
		}
	
		private Outline _outline;
		public Outline Outline
		{
			get { return _outline; }
			set { _outline = value; }
		}

		public OutlineView(Outline outline, IEditSurface surface)
		{
			_outline = outline;
			_surface = surface;
		}

		public void Paint(PaintEventArgs e)
		{
			foreach (OutlineNode node in _outline.ExpandedNodes)
			{
				node.Paint(_surface, e.Graphics);
			}
		}
	}
}
